<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style>
    
  </style>
</head>
<body>
  
</body>
<script src="./js/ajax.js"></script>
<script>

  ajax({
    method: "post",
    url: "http://localhost:3000/getuser",
    data:{
      token: sessionStorage.getItem("token")
    }
  }).then(res=>{
    console.log(res)
  })

  // 自动跟随http协议发往后端
</script>
</html>